package com.situ.springboot.service;

import com.situ.springboot.dao.Studao;
import com.situ.springboot.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuserviceImp implements StuService{
     @Autowired
     Studao dao;
    @Override
    public List<Student> queryall() {

        return dao.queryall();
    }

    @Override
    public Student queryallByid(int id) {
        return dao.queryallByid(id);
    }

    @Override
    public void update(Student student) {

            dao.update(student);

    }
}
